









<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <title>JUnice - Welcome to JUnice</title>
    <link rel="stylesheet" href="./css/maven-theme.css" type="text/css" />
    <link rel="stylesheet" href="./css/maven-base.css" type="text/css"/>
    <link rel="stylesheet" href="./css/prettify.css" type="text/css"/>
    <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
    <script type="text/javascript" src="./js/prettify.js"></script>
    <script type="text/javascript" src="./js/niftycube.js"></script>
    <script type="text/javascript">
        window.onload=function() {
            Nifty("div\#wrapper", "big");
            Nifty("div#breadcrumbs", "small");
            Nifty("div\#navcolumn", "small");
            Nifty("div.source", "medium");
            prettyPrint();
        }
    </script>
          <meta name="author" content="Marco Speranza and Simone Tripodi" />
          </head>
  <body>
    <div id="wrapper">
        <div id="banner">
                        <div id="bannerLeft">
    
            JUnice
    
            </div>
                            <div class="clear">
            <hr/>
          </div>
        </div>
        <div id="breadcrumbs">
              
  

  
    
            
  
    
            <div class="xleft">
        <span id="publishDate">Last Published: 2010-03-24</span>
                  &nbsp;| <span id="projectVersion">Version: 1.1</span>
                      </div>
                <div class="xright">      
  

  
    
            
  
    
  </div>
          <div class="clear">
            <hr/>
          </div>
        </div>
        <div id="leftColumn">
          <div id="navcolumn">
               
  

  
    
            
  
    
                       <h5>JUnice</h5>
            <ul>
              
    <li class="none">
              <strong>Home</strong>
        </li>
              
    <li class="none">
                    <a href="core.html">The core - JUniceRunner</a>
          </li>
              
    <li class="none">
                    <a href="guice.html">Guice integration</a>
          </li>
              
    <li class="none">
                    <a href="mock.html">Mock Framework integration</a>
          </li>
              
    <li class="none">
                    <a href="JUnice-1.1.pdf">PDF User Manual</a>
          </li>
          </ul>
              <h5>Project Documentation</h5>
            <ul>
              
                
                    
                  
                  
                  
                  
                  
                  
                  
                  
                  
              
        <li class="collapsed">
                    <a href="project-info.html">Project Information</a>
                </li>
              
                
                    
                  
                  
                  
                  
                  
                  
                  
                  
                  
                  
                  
              
        <li class="collapsed">
                    <a href="project-reports.html">Project Reports</a>
                </li>
          </ul>
              <h5>External Links</h5>
            <ul>
              
    <li class="none">
                    <a href="">Project Page</a>
          </li>
              
    <li class="none">
                    <a href="../google-guice/">Google Guice</a>
          </li>
              
    <li class="none">
                    <a href="http://www.junit.org" class="externalLink">JUnit</a>
          </li>
              
    <li class="none">
                    <a href="http://easymock.org/" class="externalLink">Easy-Mock</a>
          </li>
              
    <li class="none">
                    <a href="http://mockito.org/" class="externalLink">Mockito</a>
          </li>
          </ul>
                                               <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
            <img class="poweredBy"
                 alt="Built by Maven"
                 src="./images/logos/maven-feather.png"
                 width="90"
                 height="30"
                 border="1" />
          </a>
                           
  

  
    
            
  
    
            </div>
        </div>
        <div id="bodyColumn">
          <div id="contentBox">
            <div class="section"><h2>Welcome to JUnice!</h2>
<p>JUnice is a small java library for <i>JUnit</i> that minimizes the boilerplate code in your unit test relying on <i>Google Guice</i> to inject directly into your test cases all the required dependecies. Moreover it makes easier creating and injecting Mock and Stubs for your test cases and inject them into your bussiness-logic classes.</p>
</div>
<div class="section"><h2>Before Coding...</h2>
<p>To set up your project, configure in your pom.xml the <tt>repository</tt>:</p>
<div class="source"><pre>&lt;repositories&gt;
    ...
    &lt;repository&gt;
        &lt;id&gt;junice-repository&lt;/id&gt;
        &lt;name&gt;JUnice Repository for Maven&lt;/name&gt;
        &lt;url&gt;http://junice.googlecode.com/svn/repo&lt;/url&gt;
        &lt;layout&gt;default&lt;/layout&gt;
    &lt;/repository&gt;
    ...
&lt;/repositories&gt;</pre>
</div>
<p>and add the junice dependency in your <tt>dependency</tt>:</p>
<div class="source"><pre>&lt;dependencies&gt;
    ...
    &lt;dependency&gt;
        &lt;groupId&gt;com.junice&lt;/groupId&gt;
        &lt;artifactId&gt;junice&lt;/artifactId&gt;
        &lt;version&gt;XX.XX&lt;/version&gt;
    &lt;/dependency&gt;
    ...
&lt;/dependencies&gt;</pre>
</div>
</div>
<div class="section"><h2>Acknowledgements</h2>
<p>This work is dedicated to our city, L'Aquila, destroyed by a terrible earthquake the 6th April, 2009... That day more than 300 people were killed because buildings collapsed after a magnitudo 6.3 earthquake at 3:32 am.</p>
<p>We'll never forget that episode.</p>
</div>

          </div>
        </div>
        <div class="clear">
          <hr/>
        </div>
        <div id="footer">
          <div class="xright">Copyright &#169;         
   
          2010.
    
      All Rights Reserved.    
  

  
    
            
  
    
  </div>
          <div class="clear">
            <hr/>
          </div>
        </div>
    </div>
  </body>
</html>
